; * src/json.c (json_parse_object): Call make_hash_table directly.
authorMattias Engdegård <mattiase@acm.org>
Mon, 1 Apr 2024 15:01:07 +0000 (17:01 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 1 Apr 2024 15:07:04 +0000 (17:07 +0200)
src/json.c

index c64d44b4bacda464c5ae912fe370a6f0ed425483..486253581ffc5a258ae23d5dc6477de7ca99c390 100644 (file)
@@ -1599,8 +1599,7 @@ json_parse_object (struct json_parser *parser)
     case json_object_hashtable:
       {
        EMACS_INT value = (parser->object_workspace_current - first) / 2;
-       result = CALLN (Fmake_hash_table, QCtest, Qequal, QCsize,
-                       make_fixed_natnum (value));
+       result = make_hash_table (&hashtest_equal, value, Weak_None, false);
        struct Lisp_Hash_Table *h = XHASH_TABLE (result);
        for (size_t i = first; i < parser->object_workspace_current; i += 2)
          {